package com.yc.SelectCourse.ui;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.wb.swt.SWTResourceManager;

import com.yc.SelectCourse.util.StuUtils;


import org.eclipse.swt.widgets.Canvas;



import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Image;

import org.eclipse.swt.layout.FillLayout;

public class IndexCmp extends Composite {
	
	/**
	 * Create the composite.
	 * @param parent
	 * @param style
	 */

	public IndexCmp(Composite parent, int style) {
		super(parent, style);
		setLayout(new FillLayout(SWT.HORIZONTAL));
		
		Canvas canvas = new Canvas(this, SWT.NONE);
		Image image =image = SWTResourceManager.getImage("D:/eclipse/Project/YC123/YC_SelectCourse/image/index.jpeg");			
		StuUtils.DrawImage(image, canvas);

	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}
}
